
import Login from "@/pages/login"
import Layout from "@/layouts"
import {useAuth} from "@/utils/index"
import React from "react"

export default (props) => {
    const { isLogin } = useAuth()
    if (isLogin) {
        return <Layout />
    } else {
        return <Login />
    }
}
